package xing.test;

import xing.service.UserServiceImpl;
import xing.spring.farmework.MyApplicationContext;
import xing.spring.farmework.config.AppConfig;

public class SpringDemo {
    public static void main(String[] args){
        //有了一个map  实例化了map
        MyApplicationContext myApplicationContext = new MyApplicationContext(AppConfig.class);
        System.out.println(myApplicationContext.getBean("menuServiceImpl"));
        System.out.println(myApplicationContext.getBean("menuServiceImpl"));
        UserServiceImpl userService = (UserServiceImpl) myApplicationContext.getBean("userServiceImpl");
        System.out.println(userService.getMenuServiceImpl());


    }
}
